# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=c-ini
pkgver=1.0.0
pkgrel=0
pkgdesc="Ini-File Handling"
url="https://github.com/c-util/c-ini"
arch="all"
license="Apache-2.0 OR LGPL-2.1-or-later"
makedepends="
	c-list-dev~=3
	c-rbtree-dev~=3
	c-stdaux-dev~=1
	c-utf8-dev~=1
	meson
	"
subpackages="$pkgname-dev"
source="https://github.com/c-util/c-ini/archive/v$pkgver/c-ini-$pkgver.tar.gz"

build() {
	abuild-meson . output
	meson compile -j ${JOBS:-0} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
d0d01c153b6d4e37aa70df6004b3cd76f6d22a1b2f7a1fca130a16e238ca623404ad7de637206b8081bb04ed1e87efdf45125b249d1ddef2a939149a1f4fae31  c-ini-1.0.0.tar.gz
"
